home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / cxref-1.001 / cxref-1~ / cxref / parse-yy.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-24  |  1.7 KB  |  75 lines

  1. /***************************************
  2.   $Header: /home/amb/cxref/RCS/parse-yy.h 1.7 1996/02/24 14:53:31 amb Exp $
  3.  
  4.   C Cross Referencing & Documentation tool. Version 1.0
  5.  
  6.   The function protypes that are missing from the lex and yacc output.
  7.   ******************/ /******************
  8.   Written by Andrew M. Bishop
  9.  
  10.   This file Copyright 1995,96 Andrew M. Bishop
  11.   It may be distributed under the GNU Public License, version 2, or
  12.   any higher version.  See section COPYING of the GNU Public license
  13.   for conditions under which this file may be redistributed.
  14.   ***************************************/
  15.  
  16. #ifndef PARSE_YY_H
  17. #define PARSE_YY_H   /*+ To stop multiple inclusions. +*/
  18.  
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21.  
  22. /*+ Semantic type is a char* +*/
  23. #define YYSTYPE char*
  24.  
  25. /*+ use prototypes in function declarations +*/
  26. #define YY_USE_PROTOS
  27.  
  28. /*+ the "const" storage-class-modifier is valid +*/
  29. #define YY_USE_CONST
  30.  
  31. /*+ Debugging output or not +*/
  32. #define YYDEBUG 1
  33.  
  34. #if YYDEBUG
  35.  
  36. /*+ Turn the debugging output on and off. +*/
  37. extern int yydebug;
  38.  
  39. /*+ Define verbose errors in Bison generated file +*/
  40. #define YYERROR_VERBOSE 1
  41.  
  42. /*+ This is needed in the Bison generated code. +*/
  43. #define xmalloc malloc
  44.  
  45. /*+ Print the semantic value +*/
  46. #define YYPRINT(file,type,value)  printf(" '%s'",value)
  47.  
  48. #endif
  49.  
  50. /* Extern variables */
  51.  
  52. /*+ For communication between the lex and yacc code. +*/
  53. extern YYSTYPE yylval;
  54.  
  55. /*+ For communication between the lex and yacc code. +*/
  56. extern FILE *yyin;
  57.  
  58. /* Global functions */
  59.  
  60. int yylex(void);
  61.  
  62. int yyparse(void);
  63. void yyrestart (FILE *input_file);
  64.  
  65. /* yywrap() function */
  66.  
  67. #ifndef yywrap
  68.  
  69. /*+ Needed in lex but does nothing. +*/
  70. #define yywrap() 1
  71.  
  72. #endif
  73.  
  74. #endif
  75.